﻿using Cl.Entity.BaseEntity;
using SqlSugar;
using System.ComponentModel.DataAnnotations.Schema;

namespace Cl.Entity.DataBaseEntity.User
{
    [SugarTable("User_Department")]
    public class Department : EntityBaseComplete
    {
        /// <summary>
        /// 父级
        /// </summary>
        public int? ParentId { get; set; }

        /// <summary>
        /// 名称
        /// </summary>

        public string Name { get; set; }

        /// <summary>
        /// 编码
        /// </summary>

        public string Code { get; set; }

        /// <summary>
        /// 值
        /// </summary>

        public string Value { get; set; }

        /// <summary>
        /// 成员数
        /// </summary>
        public int MemberCount { get; set; }

        /// <summary>
        /// 启用
        /// </summary>
        public bool Enabled { get; set; } = true;

        /// <summary>
        /// 排序
        /// </summary>
        public int Sort { get; set; }

        /// <summary>
        /// 描述
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(500)")]
        public string Description { get; set; }

    }
}
